<div ui-view="">
    <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)" />{{alert.msg}}
</div>